<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>

<body>
	<script>
		//解构
		const F = ['a', 'b', 'c'];
		let [q, w, e] = F
		console.log(q);
		//对象解构
		const tanming = {
			name: 'tan',
			age: 23,
			score: function () {
				console.log('123');
				//对象是(同名解构)
			}
		}
		let { name, score } = tanming
		console.log(score);
		console.log(name);
	</script>
</body>

</html>